#include<iostream>
//类
class Student
{   //成员函数（方法）
public:
    void SetName(std::string name);
    void SetAge(int age);
    void show();
 
    //属性
private:
    std::string m_name;
    int m_age;
};

void Student::SetName(std::string name)
    {
       m_name=name;
    }

void Student::SetAge(int age)
    {
        m_age=age;
    }

    void Student::show()
    {

        std::cout<<"学生名字："<<m_name<<"\n"<<"学生年龄："<<m_age<<std::endl;

    }

    struct Test
    {   
        public:
        void SetA(int a)
        {
            m_a=a;
        }
        void Show()
        {

            std::cout<<"a = "<<m_a<<std::endl;
        }
        private:

        int m_a;

    };




int main()
{   

    Student stu;
    stu.SetAge(20);
    stu.SetName("lisi");
    stu.show();


    return 0;
}